import request from '@/utils/request'

// 查询成员列表
export function listMember(query) {
    return request({
        url: '/ar_check/member/list',
        method: 'get',
        params: query
    })
}

// 查询成员详细
export function getMember(memberId) {
    return request({
        url: '/ar_check/member/' + memberId,
        method: 'get'
    })
}

/*查看班组成员*/
export const getMemberByTeamId = (id) => request.get(`/ar_check/member/teamMember/${id}`)


// 新增成员
export function addMember(data) {
    return request({
        url: '/ar_check/member',
        method: 'post',
        data: data
    })
}

// 修改成员
export function updateMember(data) {
    return request({
        url: '/ar_check/member',
        method: 'put',
        data: data
    })
}

// 删除成员
export function delMember(memberId) {
    return request({
        url: '/ar_check/member/' + memberId,
        method: 'delete'
    })
}

// 查询未绑定成员列表全部
export const memberListQuery = () => request.get('/ar_check/member/listAll')
